package com.kaf.ai.dto;

import lombok.Data;

import java.util.List;

@Data
public class DeepSeekResponse {
    private String id;
    private String object;
    private Long created;
    private String model;
    private List<Choice> choices;
    private Usage usage;

    @Data
    public static class Choice {
        private Integer index;
        private Message message;
        private Object logprobs; // 或定义为 Logprobs 类
        private String finishReason; // 自动映射 "finish_reason"
    }

    @Data
    public static class Message {
        private String role;
        private String content;
    }

    @Data
    public static class Usage {
        private Integer promptTokens;
        private Integer completionTokens;
        private Integer totalTokens;
        private PromptTokensDetails promptTokensDetails;
        private Integer promptCacheHitTokens;
        private Integer promptCacheMissTokens;
    }

    @Data
    public static class PromptTokensDetails {
        private Integer cachedTokens;
    }
}
